package cn.wolfcode.trip.base.util;

import lombok.Getter;

@Getter
public class JSONResult {
    private boolean success = true;//默认操作成功
    private String msg;//错误信息
    private Object obj;
    //标记错误信息,只有发送错误时,在调用该方法
    public JSONResult mark(String msg){
        this.msg = msg;
        this.success = false;
        return this;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
}
